import React from 'react'

const Modal = (props) => {
  const {title, text, close} = props
  return <div className="modal-wrapper">
    <div className="modal-content">
      <div className="modal-title">
        {title}
      </div>
      <div className="modal-text">
        {text}
      </div>
      <div className="modal-btn">
        <button onClick={close} className="pure-button button-secondary">确定</button>
      </div>
    </div>
  </div>
}

export default Modal